package day01;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class Test1 {
	public static void main(String[] args) {
		FileInputStream fis = null;
		FileOutputStream fos = null;
		try {
			fis= new FileInputStream("d:/text/a.txt");
			fos= new FileOutputStream("c:/b.txt");
			byte [] buffer = new byte [1024];
			int len = fis.read(buffer);
			while (len>0){
				fos.write(buffer, 0, len);
				len= fis.read(buffer);
			}
		} catch (Exception e) {
		
			e.printStackTrace();
		}
		
	}
}
